package com.dawn.seckilldemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dawn.seckilldemo.pojo.Order;
import com.dawn.seckilldemo.pojo.User;
import com.dawn.seckilldemo.vo.GoodsVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dawnfades
 * @since 2021-09-18
 */
public interface OrderService extends IService<Order> {
    //秒杀
    Order seckill(User user, GoodsVo goodsVo);

    //查询结果
    Order finbyOrderId(Long orderId);


    String createPath(User user, Long goodsId);

    boolean checkPath(User user, Long goodsId, String path);
}
